package com.mf.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author: lmf
 * @Create: 2024/9/1 11:29
 * Description:  家庭信息
 */
@Data
public class FamilyInfoVo {
    private Integer id;

    @Schema(description = "年龄", example = "18")
    @NotNull(message = "年龄不能为空")
    private Integer age;

    /**
     * 单位或住址
     */
    @Schema(description = "单位或住址", example = "重庆")
    @NotBlank(message = "单位或住址不能为空")
    private String company;

    /**
     * 职业
     */
    @Schema(description = "职业", example = "学生")
    @NotBlank(message = "职业不能为空")
    private String job;

    /**
     * 手机号
     */
    @Schema(description = "手机号", example = "12345678901")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    /**
     * 姓名
     */
    @Schema(description = "姓名", example = "张三")
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 关系
     */
    @Schema(description = "关系", example = "父子")
    @NotBlank(message = "关系不能为空")
    private String relation;

    /**
     * 花名册id
     */
    @Schema(description = "花名册id", example = "1")
    @NotNull(message = "花名册id不能为空")
    private Integer rosterId;

    /**
     * 备注
     */
    @Schema(description = "备注", example = "备注")
    private String remark;


}
